<?php

namespace App\Models\Finance;

use Illuminate\Database\Eloquent\Model;

class FinanceBranchDetailBill extends Model
{
    protected $guarded=[];

    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format('Y/m/d H:i:s');
    }

    public function branchBill(){
        return $this->belongsTo(FinanceBranchBill::class,'branch_bill_id');
    }
    //
    public function subAccountBill(){
        return $this->belongsTo(FinanceShopSubAccountBill::class,'sub_bill_id');
    }


}
